package cn.luke.basic.entity;

import cn.dev33.satoken.stp.SaTokenInfo;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

/**
 * Created by Luke on 2025/3/7 16:02.
 */
@Data
@TableName("sys_user")
@Accessors(chain = true)
public class DtoUser {

    @TableId(type = IdType.AUTO)
    private Long id;
    private String openId;
    private String username;
    private String password;
    private String nick;
    private String remark;
    private String douser;
    private Date dotime;
    private Date uptime;
    private Integer status;

    private String headUrl;

    @TableField(exist = false)
    private List<DtoRole> roles;

    @TableField(exist = false)
    private List<String> permissions;

    @TableField(exist = false)
    private String tokenValue;

}
